import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
	{
		path: "/demo",
		component: () => import("@/views/home/TestView"),
	},
	{
		path: "/demo1",
		component: () => import("@/views/home/TestView1"),
	},
	{
		path: "/demo2",
		component: () => import("@/views/home/TestView2"),
	}
];

const router = new VueRouter({
	mode: "history",
	base: process.env.BASE_URL,
	routes,
});

export default router;
